// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) 

package com.nnee.p_imgex;

import android.app.Activity;
import android.app.AlertDialog;
import android.app.Dialog;
import android.content.Context;
import android.content.Intent;
import android.content.res.Resources;
import android.net.Uri;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.text.TextUtils;
import android.util.Log;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewConfiguration;
import android.view.Window;
import android.view.animation.AlphaAnimation;
import android.view.animation.Animation;
import android.widget.FrameLayout;
import android.widget.ImageView;
import android.widget.ProgressBar;
import android.widget.TextView;
import com.nnee.p_fk.cls_ActivityEx;
import com.nnee.p_img.cls_c;
import com.nnee.p_img.p_video.cls_a;
import com.nnee.p_img.p_video.cls_ag;
import com.nnee.p_img.p_video.cls_ak;
import com.nnee.p_pr.p_a.cls_h;
import com.nnee.p_pr.p_activity.cls_ArticleGalleryActivity;
import com.nnee.p_pr.p_activity.cls_PRISActivityForward;
import com.nnee.p_pr.p_activity.p_view.cls_ImageFlingGallery;
import com.nnee.p_pr.p_activity.p_view.cls_PrisImageView;
import com.nnee.p_pr.p_activity.p_view.cls_ao;
import com.nnee.p_pr.p_activity.p_view.cls_ap;
import com.nnee.p_pr.p_activity.p_view.cls_bh;
import com.nnee.p_pr.p_activity.p_view.cls_ca;
import com.nnee.p_pr.p_activity.p_view.cls_i;
import com.nnee.p_pr.p_activity.p_view.cls_q;
import com.nnee.p_pr.p_activity.p_view.cls_r;
import com.nnee.p_pr.p_activity.p_view.cls_s;
import com.nnee.p_pr.p_app.cls_PrisApp;
import com.nnee.p_pr.p_atom.cls_b;
import com.nnee.p_pr.p_atom.cls_u;
import com.nnee.p_pr.p_atom.cls_z;
import com.nnee.p_pr.p_prot.cls_d;
import com.nnee.p_pr.cls_v;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;

// Referenced classes of package com.nnee.p_imgex:
//            b, d, c, e, 
//            i, f, a, g

public class cls_ImageViewScanActiivity extends cls_ActivityEx
    implements android.view.View.OnClickListener, cls_ao, cls_ap, cls_ca, cls_i, cls_q, cls_r, cls_s
{

    public cls_ImageViewScanActiivity()
    {
        O = null;
        Q = true;
        R = false;
        S = true;
        T = false;
        U = false;
        X = null;
        Y = null;
        Z = null;
        aa = false;
        s = false;
        ag = new com.nnee.p_imgex.cls_b(this);
        t = new com.nnee.p_imgex.cls_d(this);
        ah = new com.nnee.p_imgex.cls_c(this);
        ai = new cls_e(this);
    }

    private void A()
    {
        if(u.getVisibility() == 0)
        {
            u.startAnimation(Y);
            u.setVisibility(4);
        }
        if(v.getVisibility() == 0)
        {
            v.startAnimation(Y);
            v.setVisibility(4);
        }
    }

    static cls_d a(cls_ImageViewScanActiivity cls_ImageViewScanActiivity, cls_d d1)
    {
        cls_ImageViewScanActiivity.N = d1;
        return d1;
    }

    static String a(cls_ImageViewScanActiivity cls_ImageViewScanActiivity, String s1)
    {
        cls_ImageViewScanActiivity.K = s1;
        return s1;
    }

    private void a(int i1, int j1)
    {
        if(O.h.get(i1) != null)
        {
            T = true;
            a(900, O.h.get(i1), ((String) (null)), ((String) (null)));
            F = j1;
        }
    }

    private void a(int i1, Object obj, String s1, String s2)
    {
        switch(i1)
        {
        
        		
        	case 501:
        		G = com.nnee.p_pr.cls_v.a().d((cls_u)obj);
        		break;
        	case 502:
        		G = com.nnee.p_pr.cls_v.a().e((cls_u)obj);
        		break;
        	case 800:
        		G = com.nnee.p_pr.cls_v.a().a(s1, s2);
        		break;
        	case 801:
        		 G = com.nnee.p_pr.cls_v.a().a((String)obj, s1, s2);
        		break;
        	case 900:
        		 G = com.nnee.p_pr.cls_v.a().a((cls_u)obj, 260, q, false);
        		break;
        	case 903:
        		 G = com.nnee.p_pr.cls_v.a().c(s1, cls_b.aNormal);
        		break;
        	default:
        		return;
        }
        P.add(new Integer(G));
     
    }

    public static void a(Context context, String s1, String s2, int i1, int j1, int k1)
    {
        Intent intent = new Intent(context, com.nnee.p_imgex.cls_ImageViewScanActiivity.class);
        intent.addFlags(0x4000000);
        intent.setAction("action_ealbum");
        intent.putExtra("extra_path", s1);
        intent.putExtra("extra_text", s2);
        intent.putExtra("extra_index", i1);
        intent.putExtra("extra_position", j1);
        intent.putExtra("extra_type", k1);
        ((Activity)context).startActivityForResult(intent, 4096);
    }

    public static void a(Context context, String s1, String s2, int i1, boolean flag, int j1, int k1)
    {
        Intent intent = new Intent(context, com.nnee.p_imgex.cls_ImageViewScanActiivity.class);
        intent.addFlags(0x4000000);
        intent.putExtra("extra_path", s1);
        intent.putExtra("extra_text", s2);
        intent.putExtra("extra_position", j1);
        intent.putExtra("extra_index", i1);
        intent.putExtra("extra_local", flag);
        intent.putExtra("extra_type", k1);
        context.startActivity(intent);
    }

    public static void a(Context context, ArrayList arraylist, ArrayList arraylist1, String s1, int i1, int j1, int k1)
    {
        Intent intent = new Intent(context, com.nnee.p_imgex.cls_ImageViewScanActiivity.class);
        intent.addFlags(0x4000000);
        intent.setAction("action_test");
        intent.putStringArrayListExtra("extra_path", arraylist);
        intent.putStringArrayListExtra("extra_text", arraylist1);
        intent.putExtra("extra_local", s1);
        intent.putExtra("extra_position", j1);
        intent.putExtra("extra_index", i1);
        intent.putExtra("extra_type", k1);
        context.startActivity(intent);
    }

    static void a(cls_ImageViewScanActiivity cls_ImageViewScanActiivity)
    {
        cls_ImageViewScanActiivity.v();
    }

    static void a(cls_ImageViewScanActiivity cls_ImageViewScanActiivity, cls_u u1, int i1)
    {
        cls_ImageViewScanActiivity.a(u1, i1);
    }

    private void a(cls_u u1, int i1)
    {
        int j1;
        j1 = 0;
        
        while(true) 
        {
             
            if(u1 == null || !u1.K()) return;
            ArrayList arraylist = new ArrayList();
            ArrayList arraylist1 = new ArrayList();
            cls_z az[] = u1.aA();
            if(az != null)
            {
                for(int k1 = j1; k1 < az.length; k1++)
                    if(!arraylist.contains(Uri.parse(az[k1].g())))
                    {
                        arraylist.add(Uri.parse(az[k1].g()));
                        arraylist1.add(az[k1].v());
                    }

                r = com.nnee.p_b.p_a.cls_d.f();
                if(i1 < 0)
                {
                    if(!S)
                        j1 = -1 + arraylist.size();
                } else
                {
                    j1 = i1;
                }
                b(arraylist, arraylist1, j1, true);
                i(I);
            }
        }
    }

    private void a(cls_d d1)
    {
        if(d1 != null && d1.h != null)
        {
            if(O != null && O.h != null)
            {
                com.nnee.p_pr.p_a.cls_i.a(d1.h, O.h);
                O.h.addAll(d1.h);
            }
            a(I, -1);
        }
    }

    private void a(List list, List list1, int i1, boolean flag)
    {
        if(list != null && list1 != null)
        {
            boolean flag1;
            if(list.size() <= 1)
                flag1 = false;
            else
                flag1 = true;
            s = flag1;
            E = new com.nnee.p_imgex.cls_i(this, new cls_ak(list, list1, flag), r);
            h.a(E, i1);
            b(i1);
            C.setVisibility(8);
            h.b(true);
            h.a((cls_q)this);
            C.setVisibility(8);
            z();
        }
    }

    static boolean a(cls_ImageViewScanActiivity cls_ImageViewScanActiivity, boolean flag)
    {
        cls_ImageViewScanActiivity.aa = flag;
        return flag;
    }

    static void b(cls_ImageViewScanActiivity cls_ImageViewScanActiivity)
    {
        cls_ImageViewScanActiivity.t();
    }

    static void b(cls_ImageViewScanActiivity cls_ImageViewScanActiivity, cls_d d1)
    {
        cls_ImageViewScanActiivity.a(d1);
    }

    private void b(List list, List list1, int i1, boolean flag)
    {
        if(list != null && list1 != null)
        {
            boolean flag1;
            if(list.size() <= 1)
                flag1 = false;
            else
                flag1 = true;
            s = flag1;
            E = new com.nnee.p_imgex.cls_i(this, new cls_ak(list, list1, flag), r);
            h.a(E, i1);
            b(i1);
            h.b(true);
            h.a((cls_q)this);
            C.setVisibility(8);
        }
    }

    private void b(boolean flag)
    {
        if(flag)
            z();
        else
            A();
    }

    static boolean b(cls_ImageViewScanActiivity cls_ImageViewScanActiivity, boolean flag)
    {
        cls_ImageViewScanActiivity.T = flag;
        return flag;
    }

    static void c(cls_ImageViewScanActiivity cls_ImageViewScanActiivity)
    {
        cls_ImageViewScanActiivity.u();
    }

    private void c(boolean flag)
    {
        int i1;
        if(flag)
            i1 = 0x7f0a0176;
        else
            i1 = 0x7f0a0177;
        com.nnee.p_l.p_b.cls_b.a(M, i1, 49, 54F);
    }

    static boolean c(cls_ImageViewScanActiivity cls_ImageViewScanActiivity, boolean flag)
    {
        cls_ImageViewScanActiivity.U = flag;
        return flag;
    }

    static void d(cls_ImageViewScanActiivity cls_ImageViewScanActiivity)
    {
        cls_ImageViewScanActiivity.x();
    }

    static void d(cls_ImageViewScanActiivity cls_ImageViewScanActiivity, boolean flag)
    {
        cls_ImageViewScanActiivity.b(flag);
    }

    static cls_d e(cls_ImageViewScanActiivity cls_ImageViewScanActiivity)
    {
        return cls_ImageViewScanActiivity.N;
    }

    static int f(cls_ImageViewScanActiivity cls_ImageViewScanActiivity)
    {
        return cls_ImageViewScanActiivity.F;
    }

    static void g(cls_ImageViewScanActiivity cls_ImageViewScanActiivity)
    {
        cls_ImageViewScanActiivity.z();
    }

    static LinkedList h(cls_ImageViewScanActiivity cls_ImageViewScanActiivity)
    {
        return cls_ImageViewScanActiivity.P;
    }

    static ProgressBar i(cls_ImageViewScanActiivity cls_ImageViewScanActiivity)
    {
        return cls_ImageViewScanActiivity.C;
    }

    private void i(int i1)
    {
        if(H == 512 && O != null && O.h != null && O.h.size() > 0 && i1 >= 0 && i1 < O.h.size() && O.h.get(i1) != null)
            com.nnee.p_l.p_b.cls_b.a(M, ((cls_u)O.h.get(i1)).U(), 0x7f030001, 49, 54F);
    }

    static Context j(cls_ImageViewScanActiivity cls_ImageViewScanActiivity)
    {
        return cls_ImageViewScanActiivity.M;
    }

    static String k(cls_ImageViewScanActiivity cls_ImageViewScanActiivity)
    {
        return cls_ImageViewScanActiivity.K;
    }

    static View l(cls_ImageViewScanActiivity cls_ImageViewScanActiivity)
    {
        return cls_ImageViewScanActiivity.u;
    }

    private void r()
    {
        if(ag != null)
        {
            ag.removeMessages(5);
            ag.removeMessages(6);
            ag.removeMessages(7);
            ag.removeCallbacks(ah);
            ag.removeCallbacks(ai);
            ag = null;
        }
    }

    private void s()
    {
        if(E != null)
        {
            E.a();
            E = null;
        }
        if(C.isShown())
        {
            C.setVisibility(8);
            C = null;
        }
        if(N != null)
        {
            N.k();
            N = null;
        }
        if(J != null)
            J = null;
        if(K != null)
            K = null;
        if(Y != null)
            Y = null;
        if(X != null)
            X = null;
        if(N != null)
            N = null;
        if(O != null)
            O = null;
    }

    private void t()
    {
        cls_PrisImageView prisimageview = h.c();
        if(prisimageview != null) {
        	android.graphics.Bitmap bitmap = prisimageview.g();
            if(bitmap != null)
                try
                {
                    setWallpaper(bitmap);
                }
                catch(IOException ioexception)
                {
                    ioexception.printStackTrace();
                }
        }
    }

    private void u()
    {
        Intent intent;
        cls_PrisImageView prisimageview;
        cls_a a1;
        try
        {
            intent = new Intent();
            intent.setAction("android.intent.action.SEND");
            prisimageview = h.c();
            if(prisimageview == null)
                return;
            a1 = prisimageview.f();
            if(a1 == null || !(a1 instanceof cls_a))
            {
                com.nnee.p_pr.p_a.cls_h.a(this, 0x7f0a0170);
                return;
            }
        }
        catch(Exception exception)
        {
            exception.printStackTrace();
            return;
        }
        Uri uri = a1.b();
        android.graphics.Bitmap bitmap = prisimageview.g();
        if(bitmap == null)
        {
            com.nnee.p_pr.p_a.cls_h.a(this, 0x7f0a0170);
        } else
        {
            String s1 = (new StringBuilder()).append(cls_PrisApp.a().i()).append(System.currentTimeMillis()).append(".jpg").toString();
            if(!com.nnee.p_img.cls_c.a(bitmap, s1, android.graphics.Bitmap.CompressFormat.JPEG))
            {
                com.nnee.p_pr.p_a.cls_h.a(this, 0x7f0a0170);
            } else
            {
                intent.setType("image/jpg");
                intent.putExtra("android.intent.extra.SUBJECT", uri.getLastPathSegment());
                intent.putExtra("android.intent.extra.STREAM", Uri.fromFile(new File(s1)));
                startActivity(intent);
            }
        }
    }

    private void v()
    {
        cls_PrisImageView prisimageview = h.c();
        if(prisimageview != null)
        {
            android.graphics.Bitmap bitmap = prisimageview.g();
            if(bitmap == null)
            {
                com.nnee.p_pr.p_a.cls_h.a(this, 0x7f0a0171);
            } else
            {
                String s1 = (new StringBuilder()).append(cls_PrisApp.a().i()).append(System.currentTimeMillis()).append(".jpg").toString();
                if(com.nnee.p_img.cls_c.a(bitmap, s1, android.graphics.Bitmap.CompressFormat.JPEG))
                {
                    Object aobj[] = new Object[1];
                    aobj[0] = s1;
                    com.nnee.p_pr.p_a.cls_h.a(this, getString(0x7f0a0172, aobj));
                } else
                {
                    com.nnee.p_pr.p_a.cls_h.a(this, 0x7f0a0173);
                }
            }
        }
    }

    private String w()
    {
        String s1 = "";
        if(O != null && O.h != null && O.h.size() > 0 && I >= 0 && I < O.h.size())
            s1 = ((cls_u)O.h.get(I)).U();
        return s1;
    }

    private void x()
    {
        cls_PrisImageView prisimageview = h.c();
        if(prisimageview != null)
        {
            cls_a a1 = prisimageview.f();
            if(a1 == null || !(a1 instanceof cls_a))
                com.nnee.p_pr.p_a.cls_h.a(this, 0x7f0a0174);
            else
            if(a1 instanceof cls_ag)
            	cls_PRISActivityForward.a(this, w(), ((cls_ag)a1).i().toString(), "\u5927\u56FE");
            else
                com.nnee.p_pr.p_a.cls_h.a(this, 0x7f0a0175);
        }
    }

    private void y()
    {
        Q = com.nnee.p_pr.p_a.cls_u.c();
        u = findViewById(0x7f0d0090);
        C = (ProgressBar)findViewById(0x7f0d008f);
        C.setVisibility(0);
        v = findViewById(0x7f0d008c);
        x = (ImageView)findViewById(0x7f0d0091);
        w = (ImageView)findViewById(0x7f0d0093);
        y = (ImageView)findViewById(0x7f0d0092);
        y.setImageResource(0x7f0200d4);
        y.setTag(Integer.valueOf(0x7f0200d4));
        R = false;
        D = (TextView)findViewById(0x7f0d008e);
        Z = new cls_f(this);
        Y = new AlphaAnimation(1F, 0F);
        Y.setDuration(f);
        Y.setAnimationListener(Z);
        X = new AlphaAnimation(0F, 1F);
        X.setDuration(f);
        X.setAnimationListener(Z);
        com.nnee.p_g.cls_b.c("ImageViewScanAction", (new StringBuilder()).append("mSupportMp is: ").append(Q).toString());
        if(Q)
        {
            w.setVisibility(4);
            x.setVisibility(4);
        } else
        {
            w.setVisibility(0);
            x.setVisibility(0);
            x.setOnClickListener(this);
            w.setOnClickListener(this);
        }
        y.setOnClickListener(this);
        z = (ImageView)findViewById(0x7f0d008d);
        z.setOnClickListener(this);
        A = (ImageView)findViewById(0x7f0d0025);
        A.setOnClickListener(this);
        B = (ImageView)findViewById(0x7f0d0094);
        B.setOnClickListener(this);
        w.setEnabled(false);
        x.setEnabled(false);
    }

    private void z()
    {
        if(u.getWindowToken() != null) {
        	h();
            if(u.getVisibility() != 0)
            {
                u.startAnimation(X);
                u.setVisibility(0);
            }
            if(v.getVisibility() != 0)
            {
                v.startAnimation(X);
                v.setVisibility(0);
            }
        } else {
        	ag.post(new com.nnee.p_imgex.cls_a(this));
        }
 
    }

    public void a()
    {
        S = false;
        if(!T) {
        	 if(H != 512)
             {
                 com.nnee.p_l.p_b.cls_b.a(M, 0x7f0a0092);
             } else
             {
                 int i1 = -1 + I;
                 if(O != null && O.h != null && O.h.size() > 0)
                     if(i1 < 0)
                     {
                         com.nnee.p_l.p_b.cls_b.a(M, 0x7f0a0092);
                     } else
                     {
                         a(i1, -1);
                         c(true);
                         I = -1 + I;
                     }
             }
        }
 
    }

    public void a(int i1)
    {
        b(i1);
        com.nnee.p_pr.p_d.cls_c.a(p(), 738);
    }

    public void a(int i1, int j1, Object obj)
    {
        switch(j1)
        {
       
        case 102:
        	 h();
        	break;
        case 106:
        	 if(obj != null && (obj instanceof cls_bh))
             {
                 cls_bh bh1 = (cls_bh)obj;
                 bh1.b(f());
                 bh1.a(e());
             }
        	break;
        default:
        	break;
        }
        
    }

    void a(int i1, boolean flag, Object obj)
    {
        Message message = Message.obtain();
        message.what = i1;
        message.obj = obj;
        if(flag)
            ag.sendMessageDelayed(message, 3000L);
        else
            ag.sendMessage(message);
    }

    public void a(MotionEvent motionevent)
    {
        if(ag != null)
        {
            ag.removeCallbacks(ah);
            ag.removeCallbacks(ai);
            ag.postDelayed(ai, ViewConfiguration.getLongPressTimeout());
        }
    }

    public void a(View view)
    {
        h.b();
    }

    public boolean a(MotionEvent motionevent, MotionEvent motionevent1, float f1, float f2)
    {
        cls_PrisImageView prisimageview = h.c();
        boolean flag;
        if(prisimageview != null && prisimageview.i() > 1F)
        {
            prisimageview.a(-f1, -f2);
            flag = true;
        } else
        {
            flag = false;
        }
        return flag;
    }

    public void b()
    {
        S = true;
        if(!T && !U){
        	if(H != 512)
            {
                com.nnee.p_l.p_b.cls_b.a(M, 0x7f0a0093);
            } else
            {
                int i1 = 1 + I;
                if(O != null && O.h != null && O.h.size() > 0 && i1 >= 0)
                    if(i1 >= O.h.size())
                    {
                        if(!U)
                            if(J != null)
                            {
                                U = true;
                                a(903, null, J, ((String) (null)));
                                c(false);
                            } else
                            {
                                com.nnee.p_l.p_b.cls_b.a(M, 0x7f0a0093);
                            }
                    } else
                    {
                        a(i1, -1);
                        c(false);
                        I = 1 + I;
                    }
            }
        }
    }

    public void b(int i1)
    {
        h();
        if(E != null) {
        	String s1;
            if(TextUtils.isEmpty(((cls_a)E.getItem(i1)).g()))
                y.setVisibility(4);
            else
                y.setVisibility(0);
            s1 = (new StringBuilder()).append(i1 + 1).append("/").append(E.getCount()).toString();
            if(s1 != null)
                D.setText(s1);
            if(s1 != null)
                D.setText(s1);
        }
    }

    public void b(View view)
    {
        h.a();
    }

    public void c(View view)
    {
        cls_PrisImageView prisimageview = h.c();
        if(prisimageview != null)
            prisimageview.e();
        h();
    }

    public boolean c()
    {
        if(ag != null)
        {
        	ag.removeCallbacks(ai);
            ag.removeCallbacks(ah);
            aa = false;
            cls_PrisImageView prisimageview = h.c();
            if(prisimageview != null)
            {
                if(prisimageview.i() == 1F)
                    prisimageview.a(2F);
                else
                    prisimageview.a(1F);
                h();
            }
        }
        
 
        return false;
 
    }

    public void d(View view)
    {
        cls_PrisImageView prisimageview = h.c();
        if(prisimageview != null)
            prisimageview.d();
        h();
    }

    public boolean d()
    {
        boolean flag = true;
        if(ag == null)
        {
            flag = false;
        } else
        {
            ag.removeCallbacks(ai);
            ag.removeCallbacks(ah);
            ag.postDelayed(ah, ViewConfiguration.getDoubleTapTimeout());
            aa = flag;
        }
        return flag;
    }

    public boolean e()
    {
        return R;
    }

    public boolean f()
    {
        boolean flag;
        if(u.getVisibility() == 0)
            flag = true;
        else
            flag = false;
        return flag;
    }

    public void finish()
    {
        Intent intent = new Intent();
        Bundle bundle = new Bundle();
        bundle.putInt("position", I);
        bundle.putString("nexturl", K);
        intent.putExtras(bundle);
        setResult(-1, intent);
        super.finish();
    }

    public void g()
    {
        boolean flag = true;
        if(aa)
        {
            Log.v("ImageViewScanAcitivity", "onClickShowText return ######################");
        } else
        {
            boolean flag1;
            int i1;
            cls_ImageFlingGallery cls_ImageFlingGallery;
            boolean flag2;
            if(((Integer)y.getTag()).intValue() == 0x7f0200d2)
                flag1 = flag;
            else
                flag1 = false;
            if(flag1)
                i1 = 0x7f0200d4;
            else
                i1 = 0x7f0200d2;
            y.setImageResource(i1);
            y.setTag(Integer.valueOf(i1));
            cls_ImageFlingGallery = h;
            if(!flag1)
                flag2 = flag;
            else
                flag2 = false;
            cls_ImageFlingGallery.a(flag2);
            if(flag1)
                flag = false;
            R = flag;
        }
    }

    public void h()
    {
        cls_PrisImageView prisimageview = h.c();
        if(prisimageview != null)
        {
            w.setEnabled(prisimageview.b());
            x.setEnabled(prisimageview.c());
        }
    }

    public void onClick(View view)
    {
        switch(view.getId())
        {
      
        case 2131558437:
        	 v();
             com.nnee.p_pr.p_d.cls_c.a(p(), 1760);
        	break;
        case 2131558541:
        	cls_ArticleGalleryActivity.a(M, J, L, I, 0);
        	break;
        case 2131558545:
        	 d(view);
        	break;
        case 2131558546:
        	g();
        	break;
        case 2131558547:
        	c(view);
        	break;
        case 2131558548:
        	x();
            com.nnee.p_pr.p_d.cls_c.a(p(), 737);
        	break;
        default:
        	break;
        }
        
    }

    public void onCreate(Bundle bundle)
    {
        int flag = 0;
        a(flag);
        super.onCreate(bundle);
        setDefaultKeyMode(2);
        getWindow().setFlags(1024, 1024);
        requestWindowFeature(1);
        setContentView(0x7f03002b);
        ((FrameLayout)findViewById(0x1020002)).setBackgroundColor(0xff000000);
        h = (cls_ImageFlingGallery)findViewById(0x7f0d008b);
        y();
        h.a((cls_q)this);
        h.a((cls_q)this);
        h.a((cls_q)this);
        h.a((cls_q)this);
        h.a((cls_q)this);
        h.a((cls_q)this);
        h.a((cls_q)this);
        int i1 = com.nnee.p_img.cls_c.a(this, 24F);
        h.a(i1);
        ArrayList arraylist = new ArrayList();
        ArrayList arraylist1 = new ArrayList();
        M = this;
        P = new LinkedList();
        com.nnee.p_pr.cls_v.a().a(t);
        H = 256;
        if("action_test".equals(getIntent().getAction()))
        {
            ArrayList arraylist2 = getIntent().getStringArrayListExtra("extra_path");
            ArrayList arraylist3 = getIntent().getStringArrayListExtra("extra_text");
            L = getIntent().getStringExtra("extra_local");
            int j2 = getIntent().getIntExtra("extra_index", flag);
            I = getIntent().getIntExtra("extra_position", flag);
            H = getIntent().getIntExtra("extra_type", 256);
            for(int k2 = arraylist2.size(); flag < k2; flag++)
            {
                arraylist.add(Uri.parse((String)arraylist2.get( flag)));
                arraylist1.add(arraylist3.get(flag));
            }

            a(arraylist, arraylist1, j2, true);
        } else
        if("action_ealbum".equals(getIntent().getAction()))
        {
            L = getIntent().getStringExtra("extra_text");
            int i2 = getIntent().getIntExtra("extra_index", flag);
            I = getIntent().getIntExtra("extra_position", flag);
            J = getIntent().getStringExtra("extra_path");
            K = J;
            H = getIntent().getIntExtra("extra_type", 256);
            q = com.nnee.p_b.p_a.cls_d.f();
            O = cls_PrisApp.a().p();
            a(I, i2);
        } else
        {
            I = getIntent().getIntExtra("extra_position", flag);
            int j1 = getIntent().getIntExtra("extra_index", flag);
            H = getIntent().getIntExtra("extra_type", 256);
            boolean flag1;
            if(!getIntent().getBooleanExtra("extra_local", ((flag>0) ? true : false)))
            {
                File file = new File(getIntent().getStringExtra("extra_path"));
                if(file.isDirectory())
                {
                    File afile[] = file.listFiles();
                    if(afile == null || afile.length <= 0)
                    {
                        com.nnee.p_pr.p_a.cls_h.a(this, 0x7f0a016a);
                        finish();
                    }
                    int k1 = afile.length;
                    for(int l1 =  flag ; l1 < k1; l1++)
                    {
                        arraylist.add(Uri.fromFile(afile[l1]));
                        arraylist1.add("");
                    }

                } else
                {
                    arraylist.add(Uri.fromFile(file));
                    arraylist1.add("");
                }
                flag1 = ((flag>0) ? true : false);
            } else
            {
                arraylist.add(Uri.parse(getIntent().getStringExtra("extra_path")));
                arraylist1.add(getIntent().getStringExtra("extra_text"));
                flag1 = true;
            }
            a(arraylist, arraylist1, j1, flag1);
        }
        switch(H)
        {
     
        	
        case 256:
        case 512:
        case 1024:
        case 2048:
        	z.setVisibility(8);
        	break;
        default:
       	 return;
        }
        
    }

    protected Dialog onCreateDialog(int i1)
    {
    	 Object obj = super.onCreateDialog(i1);
        switch(i1)
        {
     
        case 1:
        	 String as[] = getResources().getStringArray(0x7f070013);
             obj = (new android.app.AlertDialog.Builder(this)).setItems(as, new cls_g(this)).create();
             ((AlertDialog) (obj)).setTitle(0x7f0a016f);
        	break;
        default:
       	 
        	break;
        }
        return ((Dialog) (obj));
       
    }

    protected void onDestroy()
    {
        com.nnee.p_pr.cls_v.a().b(t);
        if(t != null)
        {
            t.c();
            t = null;
        }
        if(P != null)
            P.clear();
        com.nnee.p_pr.cls_v.a().a(q);
        com.nnee.p_img.cls_d.a().a(r);
        r();
        s();
        com.nnee.p_l.p_b.cls_b.a();
        super.onDestroy();
        System.gc();
    }

    protected void onResume()
    {
        super.onResume();
    }

    public static final int a = 100;
    private static final int ab = 1;
    private static final int ac = 5;
    private static final int ad = 6;
    private static final int ae = 7;
    private static final long af = 3000L;
    public static final int b = 101;
    public static final int c = 102;
    public static final int d = 105;
    public static final int e = 106;
    public static int f = 0;
    public static int g = 0;
    public static final String i = "extra_path";
    public static final String j = "extra_text";
    public static final String k = "extra_position";
    public static final String l = "extra_index";
    public static final String m = "extra_local";
    public static final String n = "extra_type";
    public static final String o = "action_test";
    public static final String p = "action_ealbum";
    private ImageView A;
    private ImageView B;
    private ProgressBar C;
    private TextView D;
    private com.nnee.p_imgex.cls_i E;
    private int F;
    private int G;
    private int H;
    private int I;
    private String J;
    private String K;
    private String L;
    private Context M;
    private cls_d N;
    private cls_d O;
    private LinkedList P;
    private boolean Q;
    private boolean R;
    private boolean S;
    private boolean T;
    private boolean U;
    private final int V = 0x7f0200d2;
    private final int W = 0x7f0200d4;
    private Animation X;
    private Animation Y;
    private android.view.animation.Animation.AnimationListener Z;
    private boolean aa;
    private Handler ag;
    private Runnable ah;
    private Runnable ai;
    public cls_ImageFlingGallery h;
    public int q;
    public int r;
    boolean s;
    com.nnee.p_pr.cls_b t;
    private View u;
    private View v;
    private ImageView w;
    private ImageView x;
    private ImageView y;
    private ImageView z;

    static 
    {
        f = 500;
        g = 1000;
    }
}
